package ws.jdbc.concurrent.driver.sqlserver.cursor.wrapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * This interface provides services to move forward-only, read and modify data
 * upon a {@link ResultSet} object.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public interface ICursorForwardUpdate extends ICursorForwardReadOnly {

  void moveToInsertRow() throws SQLException;

  void moveToCurrentRow() throws SQLException;

  void cancelRowUpdates() throws SQLException;

  void updateFloat(int columnIndex, float x) throws SQLException;

  void updateInt(int columnIndex, int x) throws SQLException;

  void updateString(int columnIndex, String x) throws SQLException;

  void updateRow() throws SQLException;

  void insertRow() throws SQLException;
}
